<template>
    <title>入库报表信息</title>
  <el-table :data="tableData" style="width: 100%">
    <el-table-column type="index" label="序号" width="140" />
    <el-table-column prop="associatedOrderNumber" label="管理订单号" width="140" />
    <el-table-column prop="supplierName" label="供应商名称" width="140" />
    <el-table-column prop="supplierPhone" label="供应商联系方式" width="140" />
    <el-table-column prop="preparedName" label="制单人" width="140" />
    <el-table-column prop="preparedTime" label="制单时间" width="140" />
    <el-table-column prop="stateName" label="审批人" width="140" />
    <el-table-column prop="stateCode" label="单号" width="140" />
    <el-table-column prop="supplierContacts" label="供应商联系人" width="140" />
  </el-table>
</template>

<script lang="ts" setup>
import axios from 'axios';
import { onMounted, ref } from 'vue';
const tableData = ref([]);
onMounted(()=>{
    GetData();
})
const GetData=()=>{
    axios.get("http://localhost:5121/api/Inventory/GetStocking")
    .then(res=>{
        tableData.value=res.data.data;
    })
}
</script>
